/**
 * Created by moon on 2016/12/23.
 */
define(["business/services/constant"],function(constant){
	var bloghost = constant.config.BASEURL_USER;//博文host
	var blogurl = constant.config.CONSTANT_Blog;//博文路径
	
	var postbarhost = constant.config.BASEURL_BOSTBAR;//postarhost
	var category = constant.config.CONSTANT_POSTBARCLASS;//分类urlOL
	
	var taburl = constant.config.CONSTANT_TAB;//标签url
	
	var updateurl = constant.config.CONSTANT_COLLECTIONA;//收藏博文路径
	
	var wtfhost = constant.config.BASEURL_DATABASE; 
	var wtfurl = constant.config.CONSTANT_CATEGORY;
	
	return{
		wtfHttpService:function(requestion) {
			return constant.httpSend(wtfhost,wtfurl,requestion);
		},		
		getblogHttpService:function(requestion) {
			return constant.httpSend(bloghost,blogurl,requestion);
		},
		categoryHttpService:function(requestion) {
			return constant.httpSend(postbarhost, category, requestion);			
		},
		gettabHttpService:function(requestion) {
			return constant.httpSend(bloghost, taburl, requestion);
		},
		postHttpService:function(requestion) {
			return constant.httpSend(bloghost, blogurl, requestion);
		},
		getmarkService:function(requestion) {
			return constant.httpSend(bloghost, blogurl, requestion);
		},
		updateService:function(requestion) {
			return constant.httpSend(bloghost, updateurl, requestion)
		},
	}
});